include ./common.in

.PHONY: all help clean test sample
.PHONY: lib librefobject

TARGET=refobject

LIBS+=$(BUILDDIR)/librefobject.a
#EXTLIBS+=-L ./extlibs/lib
#INCDIR+=-I. -Iapp -I$(BASEDIR) -I$(BASEDIR)/module/target -I./ext/include

#SOURCE+=main.c
#OBJECT=$(subst .c,.o, $(SOURCE))


all: $(TARGET)

help:
	@echo "todo"

$(TARGET): librefobject
	cp -f ./$(BUILDDIR)/librefobject.a ./

test: $(TARGET)
	make -C microtest test

librefobject:
	@mkdir -p build
	@mkdir -p $(BUILDDIR)
	make -C source

sample: librefobject
	make -C sample

clean:
	make -C source clean
	make -C microtest clean
	$(RM) -f $(TARGET) $(OBJECT)
	$(RM) -f librefobject.a
	$(RM) *~
	$(RM) include/RefObject/*~
	$(RM) -rf build

depend:
	make -C source depend
	make -C microtest depend

